<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Area extends Model
{
	const PROV_GENRE = 1;
	const CITY_GENRE = 2;
	const DIST_GENRE = 3;

	public static function options($level = self::PROV_GENRE)
	{
		return self::query()->where('genre', $level)->pluck('name', 'id');
	}
}
